﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="KnjizenjeStavkaProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class KnjizenjeStavkaProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.KnjizenjeStavka, NetROS.Tiers.Entities.KnjizenjeStavkaKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeStavkaKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="iDUserCreated"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(System.Int32 iDUserCreated)
		{
			int count = -1;
			return GetByIDUserCreated(iDUserCreated, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated)
		{
			int count = -1;
			return GetByIDUserCreated(transactionManager, iDUserCreated, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserCreated(transactionManager, iDUserCreated, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		fK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserCreated"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(System.Int32 iDUserCreated, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserCreated(null, iDUserCreated, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		fK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(System.Int32 iDUserCreated, int start, int pageLength,out int count)
		{
			return GetByIDUserCreated(null, iDUserCreated, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="iDUserModified"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(System.Int32 iDUserModified)
		{
			int count = -1;
			return GetByIDUserModified(iDUserModified, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified)
		{
			int count = -1;
			return GetByIDUserModified(transactionManager, iDUserModified, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserModified(transactionManager, iDUserModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		fK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserModified"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(System.Int32 iDUserModified, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserModified(null, iDUserModified, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		fK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserModified"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(System.Int32 iDUserModified, int start, int pageLength,out int count)
		{
			return GetByIDUserModified(null, iDUserModified, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDjelatnik1 key.
		///		FK_tblKnjizenjeStavka_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		FK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="iDDokument"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(System.Int32? iDDokument)
		{
			int count = -1;
			return GetByIDDokument(iDDokument, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		FK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokument"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(TransactionManager transactionManager, System.Int32? iDDokument)
		{
			int count = -1;
			return GetByIDDokument(transactionManager, iDDokument, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		FK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokument"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(TransactionManager transactionManager, System.Int32? iDDokument, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokument(transactionManager, iDDokument, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		fK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDDokument"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(System.Int32? iDDokument, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDDokument(null, iDDokument, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		fK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDDokument"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(System.Int32? iDDokument, int start, int pageLength,out int count)
		{
			return GetByIDDokument(null, iDDokument, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblDokument key.
		///		FK_tblKnjizenjeStavka_tblDokument Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokument"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDokument(TransactionManager transactionManager, System.Int32? iDDokument, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		FK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDKlijent(iDKlijent, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		FK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDKlijent(transactionManager, iDKlijent, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		FK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijent(transactionManager, iDKlijent, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		fK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKlijent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(System.Int32? iDKlijent, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDKlijent(null, iDKlijent, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		fK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKlijent"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(System.Int32? iDKlijent, int start, int pageLength,out int count)
		{
			return GetByIDKlijent(null, iDKlijent, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKlijent key.
		///		FK_tblKnjizenjeStavka_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		FK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="iDKnjizenja"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(System.Int32 iDKnjizenja)
		{
			int count = -1;
			return GetByIDKnjizenja(iDKnjizenja, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		FK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(TransactionManager transactionManager, System.Int32 iDKnjizenja)
		{
			int count = -1;
			return GetByIDKnjizenja(transactionManager, iDKnjizenja, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		FK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(TransactionManager transactionManager, System.Int32 iDKnjizenja, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKnjizenja(transactionManager, iDKnjizenja, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		fK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKnjizenja"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(System.Int32 iDKnjizenja, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDKnjizenja(null, iDKnjizenja, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		fK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(System.Int32 iDKnjizenja, int start, int pageLength,out int count)
		{
			return GetByIDKnjizenja(null, iDKnjizenja, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblKnjizenje key.
		///		FK_tblKnjizenjeStavka_tblKnjizenje Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenja(TransactionManager transactionManager, System.Int32 iDKnjizenja, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		FK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="iDOrganizacija"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(System.Int32 iDOrganizacija)
		{
			int count = -1;
			return GetByIDOrganizacija(iDOrganizacija, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		FK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacija"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(TransactionManager transactionManager, System.Int32 iDOrganizacija)
		{
			int count = -1;
			return GetByIDOrganizacija(transactionManager, iDOrganizacija, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		FK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(TransactionManager transactionManager, System.Int32 iDOrganizacija, int start, int pageLength)
		{
			int count = -1;
			return GetByIDOrganizacija(transactionManager, iDOrganizacija, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		fK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacija"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(System.Int32 iDOrganizacija, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDOrganizacija(null, iDOrganizacija, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		fK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(System.Int32 iDOrganizacija, int start, int pageLength,out int count)
		{
			return GetByIDOrganizacija(null, iDOrganizacija, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblOrganizacija key.
		///		FK_tblKnjizenjeStavka_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDOrganizacija(TransactionManager transactionManager, System.Int32 iDOrganizacija, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		FK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(System.Int32 iDVrstaFinDokumenta)
		{
			int count = -1;
			return GetByIDVrstaFinDokumenta(iDVrstaFinDokumenta, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		FK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32 iDVrstaFinDokumenta)
		{
			int count = -1;
			return GetByIDVrstaFinDokumenta(transactionManager, iDVrstaFinDokumenta, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		FK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32 iDVrstaFinDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDVrstaFinDokumenta(transactionManager, iDVrstaFinDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		fK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(System.Int32 iDVrstaFinDokumenta, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDVrstaFinDokumenta(null, iDVrstaFinDokumenta, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		fK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(System.Int32 iDVrstaFinDokumenta, int start, int pageLength,out int count)
		{
			return GetByIDVrstaFinDokumenta(null, iDVrstaFinDokumenta, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenjeStavka_tblVrstaFinDokumenta key.
		///		FK_tblKnjizenjeStavka_tblVrstaFinDokumenta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.KnjizenjeStavka objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32 iDVrstaFinDokumenta, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.KnjizenjeStavka Get(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeStavkaKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(null,iD, datumDokumentaOriginal, opisKnjizenja, dug, pot, placanjeModel, placanjePoziv, iDKlijent, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(null, iD, datumDokumentaOriginal, opisKnjizenja, dug, pot, placanjeModel, placanjePoziv, iDKlijent, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(TransactionManager transactionManager, System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(transactionManager, iD, datumDokumentaOriginal, opisKnjizenja, dug, pot, placanjeModel, placanjePoziv, iDKlijent, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(TransactionManager transactionManager, System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(transactionManager, iD, datumDokumentaOriginal, opisKnjizenja, dug, pot, placanjeModel, placanjePoziv, iDKlijent, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent, int start, int pageLength, out int count)
		{
			return GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(null, iD, datumDokumentaOriginal, opisKnjizenja, dug, pot, placanjeModel, placanjePoziv, iDKlijent, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K1_K5_K8_K9_K10_K14_K15_K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="opisKnjizenja"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="placanjePoziv"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDatumDokumentaOriginalOpisKnjizenjaDugPotPlacanjeModelPlacanjePozivIDKlijent(TransactionManager transactionManager, System.Int32 iD, System.DateTime datumDokumentaOriginal, System.String opisKnjizenja, System.Decimal dug, System.Decimal pot, System.String placanjeModel, System.String placanjePoziv, System.Int32? iDKlijent, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDKlijentIDPotDug(null,iDKlijent, iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentIDPotDug(null, iDKlijent, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDKlijentIDPotDug(transactionManager, iDKlijent, iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentIDPotDug(transactionManager, iDKlijent, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count)
		{
			return GetByIDKlijentIDPotDug(null, iDKlijent, iD, pot, dug, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K1_K10_K9 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDPotDug(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta)
		{
			int count = -1;
			return GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(null,iDKlijent, iDKonto, iDOrganizacija, datumDokumentaOriginal, iDVrstaFinDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(null, iDKlijent, iDKonto, iDOrganizacija, datumDokumentaOriginal, iDVrstaFinDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta)
		{
			int count = -1;
			return GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(transactionManager, iDKlijent, iDKonto, iDOrganizacija, datumDokumentaOriginal, iDVrstaFinDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(transactionManager, iDKlijent, iDKonto, iDOrganizacija, datumDokumentaOriginal, iDVrstaFinDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta, int start, int pageLength, out int count)
		{
			return GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(null, iDKlijent, iDKonto, iDOrganizacija, datumDokumentaOriginal, iDVrstaFinDokumenta, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K11_K2_K3_K5_K4_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="datumDokumentaOriginal"></param>
		/// <param name="iDVrstaFinDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentIDKontoIDOrganizacijaDatumDokumentaOriginalIDVrstaFinDokumenta(TransactionManager transactionManager, System.Int32? iDKlijent, System.Int32 iDKonto, System.Int32 iDOrganizacija, System.DateTime datumDokumentaOriginal, System.Int32 iDVrstaFinDokumenta, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(System.Int32 iDKonto)
		{
			int count = -1;
			return GetByIDKonto(null,iDKonto, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(System.Int32 iDKonto, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKonto(null, iDKonto, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(TransactionManager transactionManager, System.Int32 iDKonto)
		{
			int count = -1;
			return GetByIDKonto(transactionManager, iDKonto, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(TransactionManager transactionManager, System.Int32 iDKonto, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKonto(transactionManager, iDKonto, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(System.Int32 iDKonto, int start, int pageLength, out int count)
		{
			return GetByIDKonto(null, iDKonto, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKonto(TransactionManager transactionManager, System.Int32 iDKonto, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta)
		{
			int count = -1;
			return GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(null,iDKonto, iD, iDKlijent, iDKnjizenja, iDOrganizacija, pot, dug, prikazUKnjizi, sifraOriginalnogDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(null, iDKonto, iD, iDKlijent, iDKnjizenja, iDOrganizacija, pot, dug, prikazUKnjizi, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta)
		{
			int count = -1;
			return GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(transactionManager, iDKonto, iD, iDKlijent, iDKnjizenja, iDOrganizacija, pot, dug, prikazUKnjizi, sifraOriginalnogDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(transactionManager, iDKonto, iD, iDKlijent, iDKnjizenja, iDOrganizacija, pot, dug, prikazUKnjizi, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta, int start, int pageLength, out int count)
		{
			return GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(null, iDKonto, iD, iDKlijent, iDKnjizenja, iDOrganizacija, pot, dug, prikazUKnjizi, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K1_K11_K16_K3_K10_K9_K21_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDIDKlijentIDKnjizenjaIDOrganizacijaPotDugPrikazUKnjiziSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Decimal pot, System.Decimal dug, System.Int32 prikazUKnjizi, System.String sifraOriginalnogDokumenta, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija)
		{
			int count = -1;
			return GetByIDKontoIDKlijentIDOrganizacija(null,iDKonto, iDKlijent, iDOrganizacija, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDKlijentIDOrganizacija(null, iDKonto, iDKlijent, iDOrganizacija, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija)
		{
			int count = -1;
			return GetByIDKontoIDKlijentIDOrganizacija(transactionManager, iDKonto, iDKlijent, iDOrganizacija, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDKlijentIDOrganizacija(transactionManager, iDKonto, iDKlijent, iDOrganizacija, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija, int start, int pageLength, out int count)
		{
			return GetByIDKontoIDKlijentIDOrganizacija(null, iDKonto, iDKlijent, iDOrganizacija, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K11_K3_5_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDKlijentIDOrganizacija(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32? iDKlijent, System.Int32 iDOrganizacija, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi)
		{
			int count = -1;
			return GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(null,iDKonto, dug, pot, iD, iDKlijent, iDKnjizenja, prikazUKnjizi, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(null, iDKonto, dug, pot, iD, iDKlijent, iDKnjizenja, prikazUKnjizi, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi)
		{
			int count = -1;
			return GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(transactionManager, iDKonto, dug, pot, iD, iDKlijent, iDKnjizenja, prikazUKnjizi, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(transactionManager, iDKonto, dug, pot, iD, iDKlijent, iDKnjizenja, prikazUKnjizi, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi, int start, int pageLength, out int count)
		{
			return GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(null, iDKonto, dug, pot, iD, iDKlijent, iDKnjizenja, prikazUKnjizi, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K2_K9_K10_K1_K11_K16_K21_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPotIDIDKlijentIDKnjizenjaPrikazUKnjizi(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, System.Int32 iD, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 prikazUKnjizi, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta)
		{
			int count = -1;
			return GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(null,prikazUKnjizi, iDKlijent, iDKnjizenja, iDOrganizacija, iDKonto, pot, dug, sifraOriginalnogDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(null, prikazUKnjizi, iDKlijent, iDKnjizenja, iDOrganizacija, iDKonto, pot, dug, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta)
		{
			int count = -1;
			return GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(transactionManager, prikazUKnjizi, iDKlijent, iDKnjizenja, iDOrganizacija, iDKonto, pot, dug, sifraOriginalnogDokumenta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta, int start, int pageLength)
		{
			int count = -1;
			return GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(transactionManager, prikazUKnjizi, iDKlijent, iDKnjizenja, iDOrganizacija, iDKonto, pot, dug, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta, int start, int pageLength, out int count)
		{
			return GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(null, prikazUKnjizi, iDKlijent, iDKnjizenja, iDOrganizacija, iDKonto, pot, dug, sifraOriginalnogDokumenta, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_14_1951202597__K21_K11_K16_K3_K2_K10_K9_K12_5_22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="prikazUKnjizi"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="iDOrganizacija"></param>
		/// <param name="iDKonto"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="sifraOriginalnogDokumenta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPrikazUKnjiziIDKlijentIDKnjizenjaIDOrganizacijaIDKontoPotDugSifraOriginalnogDokumenta(TransactionManager transactionManager, System.Int32 prikazUKnjizi, System.Int32? iDKlijent, System.Int32 iDKnjizenja, System.Int32 iDOrganizacija, System.Int32 iDKonto, System.Decimal pot, System.Decimal dug, System.String sifraOriginalnogDokumenta, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(System.String placanjePoziv, System.String placanjeModel, System.Int32 iD)
		{
			int count = -1;
			return GetByPlacanjePozivPlacanjeModelID(null,placanjePoziv, placanjeModel, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(System.String placanjePoziv, System.String placanjeModel, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByPlacanjePozivPlacanjeModelID(null, placanjePoziv, placanjeModel, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(TransactionManager transactionManager, System.String placanjePoziv, System.String placanjeModel, System.Int32 iD)
		{
			int count = -1;
			return GetByPlacanjePozivPlacanjeModelID(transactionManager, placanjePoziv, placanjeModel, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(TransactionManager transactionManager, System.String placanjePoziv, System.String placanjeModel, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByPlacanjePozivPlacanjeModelID(transactionManager, placanjePoziv, placanjeModel, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(System.String placanjePoziv, System.String placanjeModel, System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByPlacanjePozivPlacanjeModelID(null, placanjePoziv, placanjeModel, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_5_1951202597__K15_K14_K1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="placanjePoziv"></param>
		/// <param name="placanjeModel"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByPlacanjePozivPlacanjeModelID(TransactionManager transactionManager, System.String placanjePoziv, System.String placanjeModel, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDPotDug(null,iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDPotDug(null, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(TransactionManager transactionManager, System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDPotDug(transactionManager, iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(TransactionManager transactionManager, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDPotDug(transactionManager, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count)
		{
			return GetByIDPotDug(null, iD, pot, dug, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K10_K9_2_5_13_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDPotDug(TransactionManager transactionManager, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(System.Int32 iD, System.Decimal dug, System.Decimal pot)
		{
			int count = -1;
			return GetByIDDugPot(null,iD, dug, pot, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(System.Int32 iD, System.Decimal dug, System.Decimal pot, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDugPot(null, iD, dug, pot, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(TransactionManager transactionManager, System.Int32 iD, System.Decimal dug, System.Decimal pot)
		{
			int count = -1;
			return GetByIDDugPot(transactionManager, iD, dug, pot, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(TransactionManager transactionManager, System.Int32 iD, System.Decimal dug, System.Decimal pot, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDugPot(transactionManager, iD, dug, pot, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(System.Int32 iD, System.Decimal dug, System.Decimal pot, int start, int pageLength, out int count)
		{
			return GetByIDDugPot(null, iD, dug, pot, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K1_K9_K10_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDDugPot(TransactionManager transactionManager, System.Int32 iD, System.Decimal dug, System.Decimal pot, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD)
		{
			int count = -1;
			return GetByIDKlijentPotDugID(null,iDKlijent, pot, dug, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentPotDugID(null, iDKlijent, pot, dug, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(TransactionManager transactionManager, System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD)
		{
			int count = -1;
			return GetByIDKlijentPotDugID(transactionManager, iDKlijent, pot, dug, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(TransactionManager transactionManager, System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijentPotDugID(transactionManager, iDKlijent, pot, dug, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByIDKlijentPotDugID(null, iDKlijent, pot, dug, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K11_K10_K9_K1_2_3_16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKlijentPotDugID(TransactionManager transactionManager, System.Int32? iDKlijent, System.Decimal pot, System.Decimal dug, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto)
		{
			int count = -1;
			return GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(null,iDKnjizenja, pot, iD, dug, iDKlijent, iDKonto, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(null, iDKnjizenja, pot, iD, dug, iDKlijent, iDKonto, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(TransactionManager transactionManager, System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto)
		{
			int count = -1;
			return GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(transactionManager, iDKnjizenja, pot, iD, dug, iDKlijent, iDKonto, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(TransactionManager transactionManager, System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(transactionManager, iDKnjizenja, pot, iD, dug, iDKlijent, iDKonto, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto, int start, int pageLength, out int count)
		{
			return GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(null, iDKnjizenja, pot, iD, dug, iDKlijent, iDKonto, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K16_K10_K1_K9_K11_K2_5_13 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKnjizenja"></param>
		/// <param name="pot"></param>
		/// <param name="iD"></param>
		/// <param name="dug"></param>
		/// <param name="iDKlijent"></param>
		/// <param name="iDKonto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKnjizenjaPotIDDugIDKlijentIDKonto(TransactionManager transactionManager, System.Int32 iDKnjizenja, System.Decimal pot, System.Int32 iD, System.Decimal dug, System.Int32? iDKlijent, System.Int32 iDKonto, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDKontoIDPotDug(null,iDKonto, iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDPotDug(null, iDKonto, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug)
		{
			int count = -1;
			return GetByIDKontoIDPotDug(transactionManager, iDKonto, iD, pot, dug, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoIDPotDug(transactionManager, iDKonto, iD, pot, dug, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count)
		{
			return GetByIDKontoIDPotDug(null, iDKonto, iD, pot, dug, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblKnjizenjeStavka_7_1951202597__K2_K1_K10_K9_5 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="iD"></param>
		/// <param name="pot"></param>
		/// <param name="dug"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoIDPotDug(TransactionManager transactionManager, System.Int32 iDKonto, System.Int32 iD, System.Decimal pot, System.Decimal dug, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IXStavkeOrder index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot)
		{
			int count = -1;
			return GetByIDKontoDugPot(null,iDKonto, dug, pot, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IXStavkeOrder index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoDugPot(null, iDKonto, dug, pot, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IXStavkeOrder index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot)
		{
			int count = -1;
			return GetByIDKontoDugPot(transactionManager, iDKonto, dug, pot, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IXStavkeOrder index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKontoDugPot(transactionManager, iDKonto, dug, pot, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IXStavkeOrder index.
		/// </summary>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, int start, int pageLength, out int count)
		{
			return GetByIDKontoDugPot(null, iDKonto, dug, pot, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IXStavkeOrder index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKonto"></param>
		/// <param name="dug"></param>
		/// <param name="pot"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<KnjizenjeStavka> GetByIDKontoDugPot(TransactionManager transactionManager, System.Int32 iDKonto, System.Decimal dug, System.Decimal pot, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenjeStavka index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public abstract NetROS.Tiers.Entities.KnjizenjeStavka GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated)
		{
			int count = -1;
			return GetByKontoSifraPrijenosIDDokumentCalculated(null,kontoSifraPrijenos, iDDokument, calculated, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated, int start, int pageLength)
		{
			int count = -1;
			return GetByKontoSifraPrijenosIDDokumentCalculated(null, kontoSifraPrijenos, iDDokument, calculated, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(TransactionManager transactionManager, System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated)
		{
			int count = -1;
			return GetByKontoSifraPrijenosIDDokumentCalculated(transactionManager, kontoSifraPrijenos, iDDokument, calculated, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(TransactionManager transactionManager, System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated, int start, int pageLength)
		{
			int count = -1;
			return GetByKontoSifraPrijenosIDDokumentCalculated(transactionManager, kontoSifraPrijenos, iDDokument, calculated, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated, int start, int pageLength, out int count)
		{
			return GetByKontoSifraPrijenosIDDokumentCalculated(null, kontoSifraPrijenos, iDDokument, calculated, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the UIX_IDDokument_KontoSifra_Calculated index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="kontoSifraPrijenos"></param>
		/// <param name="iDDokument"></param>
		/// <param name="calculated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> class.</returns>
		public abstract NetROS.Tiers.Entities.KnjizenjeStavka GetByKontoSifraPrijenosIDDokumentCalculated(TransactionManager transactionManager, System.String kontoSifraPrijenos, System.Int32? iDDokument, System.String calculated, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region _tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_Otvorene_DSQL(null, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL(int start, int pageLength, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_Otvorene_DSQL(null, start, pageLength , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL(TransactionManager transactionManager, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_Otvorene_DSQL(transactionManager, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader TraziStavke_Otvorene_DSQL(TransactionManager transactionManager, int start, int pageLength , System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo);
		
		#endregion
		
		#region _tblKnjizenjeStavka_TraziStavke_DSQL 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_DSQL(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_DSQL(null, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_DSQL(int start, int pageLength, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_DSQL(null, start, pageLength , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_DSQL(TransactionManager transactionManager, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
		{
			return TraziStavke_DSQL(transactionManager, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_DSQL' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader TraziStavke_DSQL(TransactionManager transactionManager, int start, int pageLength , System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo);
		
		#endregion
		
		#region _tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL_IData 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL_IData' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Otvaranje"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL_IData(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo, System.Int32? @Otvaranje)
		{
			return TraziStavke_Otvorene_DSQL_IData(null, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo, @Otvaranje);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL_IData' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Otvaranje"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL_IData(int start, int pageLength, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo, System.Int32? @Otvaranje)
		{
			return TraziStavke_Otvorene_DSQL_IData(null, start, pageLength , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo, @Otvaranje);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL_IData' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Otvaranje"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader TraziStavke_Otvorene_DSQL_IData(TransactionManager transactionManager, System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo, System.Int32? @Otvaranje)
		{
			return TraziStavke_Otvorene_DSQL_IData(transactionManager, 0, int.MaxValue , @filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd, @UDatumDokDosDo, @Otvaranje);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene_DSQL_IData' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="parametri"> A <c>System.String</c> instance.</param>
		/// <param name="UDatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="UDatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Otvaranje"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader TraziStavke_Otvorene_DSQL_IData(TransactionManager transactionManager, int start, int pageLength , System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo, System.Int32? @Otvaranje);
		
		#endregion
		
		#region _tblKnjizenjeStavka_ZatvoriStavku_PoVrijed 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_ZatvoriStavku_PoVrijed' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenjeStavka"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PoVrijednostiPrviDatum"> A <c>System.Boolean?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> ZatvoriStavku_PoVrijed(System.Int32? @IDKnjizenjeStavka, System.Boolean? @PoVrijednostiPrviDatum)
		{
			return ZatvoriStavku_PoVrijed(null, 0, int.MaxValue , @IDKnjizenjeStavka, @PoVrijednostiPrviDatum);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_ZatvoriStavku_PoVrijed' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenjeStavka"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PoVrijednostiPrviDatum"> A <c>System.Boolean?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> ZatvoriStavku_PoVrijed(int start, int pageLength, System.Int32? @IDKnjizenjeStavka, System.Boolean? @PoVrijednostiPrviDatum)
		{
			return ZatvoriStavku_PoVrijed(null, start, pageLength , @IDKnjizenjeStavka, @PoVrijednostiPrviDatum);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_ZatvoriStavku_PoVrijed' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenjeStavka"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PoVrijednostiPrviDatum"> A <c>System.Boolean?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> ZatvoriStavku_PoVrijed(TransactionManager transactionManager, System.Int32? @IDKnjizenjeStavka, System.Boolean? @PoVrijednostiPrviDatum)
		{
			return ZatvoriStavku_PoVrijed(transactionManager, 0, int.MaxValue , @IDKnjizenjeStavka, @PoVrijednostiPrviDatum);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_ZatvoriStavku_PoVrijed' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenjeStavka"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PoVrijednostiPrviDatum"> A <c>System.Boolean?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public abstract TList<KnjizenjeStavka> ZatvoriStavku_PoVrijed(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDKnjizenjeStavka, System.Boolean? @PoVrijednostiPrviDatum);
		
		#endregion
		
		#region _tblKnjizenjeStavka_TraziStavke 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke(System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke(null, 0, int.MaxValue , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke(int start, int pageLength, System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke(null, start, pageLength , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke(TransactionManager transactionManager, System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke(transactionManager, 0, int.MaxValue , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public abstract TList<KnjizenjeStavka> TraziStavke(TransactionManager transactionManager, int start, int pageLength , System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo);
		
		#endregion
		
		#region _tblKnjizenjeStavka_TraziStavke_Otvorene 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke_Otvorene(System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke_Otvorene(null, 0, int.MaxValue , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke_Otvorene(int start, int pageLength, System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke_Otvorene(null, start, pageLength , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public TList<KnjizenjeStavka> TraziStavke_Otvorene(TransactionManager transactionManager, System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo)
		{
			return TraziStavke_Otvorene(transactionManager, 0, int.MaxValue , @filter, @DatumDokOd, @DatumDokDo, @DatumDokDosOd, @DatumDokDosDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_TraziStavke_Otvorene' stored procedure. 
		/// </summary>
		/// <param name="filter"> A <c>System.String</c> instance.</param>
		/// <param name="DatumDokOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDokDosDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;KnjizenjeStavka&gt;"/> instance.</returns>
		public abstract TList<KnjizenjeStavka> TraziStavke_Otvorene(TransactionManager transactionManager, int start, int pageLength , System.String @filter, System.DateTime? @DatumDokOd, System.DateTime? @DatumDokDo, System.DateTime? @DatumDokDosOd, System.DateTime? @DatumDokDosDo);
		
		#endregion
		
		#region _tblKnjizenjeStavka_PrimjerKontiranja_GetByIDDokument 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_PrimjerKontiranja_GetByIDDokument' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrimjerKontiranja_GetByIDDokument(System.Int32? @IDDokument)
		{
			return PrimjerKontiranja_GetByIDDokument(null, 0, int.MaxValue , @IDDokument);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_PrimjerKontiranja_GetByIDDokument' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrimjerKontiranja_GetByIDDokument(int start, int pageLength, System.Int32? @IDDokument)
		{
			return PrimjerKontiranja_GetByIDDokument(null, start, pageLength , @IDDokument);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_PrimjerKontiranja_GetByIDDokument' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrimjerKontiranja_GetByIDDokument(TransactionManager transactionManager, System.Int32? @IDDokument)
		{
			return PrimjerKontiranja_GetByIDDokument(transactionManager, 0, int.MaxValue , @IDDokument);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenjeStavka_PrimjerKontiranja_GetByIDDokument' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrimjerKontiranja_GetByIDDokument(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDDokument);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;KnjizenjeStavka&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<KnjizenjeStavka> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<KnjizenjeStavka> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.KnjizenjeStavka c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("KnjizenjeStavka")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.KnjizenjeStavkaColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.KnjizenjeStavkaColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<KnjizenjeStavka>(
			key.ToString(), // EntityTrackingKey
			"KnjizenjeStavka",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.KnjizenjeStavka();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.IDKonto = (System.Int32)reader["IDKonto"];
			c.IDOrganizacija = (System.Int32)reader["IDOrganizacija"];
			c.IDVrstaFinDokumenta = (System.Int32)reader["IDVrstaFinDokumenta"];
			c.DatumDokumentaOriginal = (System.DateTime)reader["DatumDokumentaOriginal"];
			c.DatumDokumentaPromjenjen = reader.IsDBNull(reader.GetOrdinal("DatumDokumentaPromjenjen")) ? null : (System.DateTime?)reader["DatumDokumentaPromjenjen"];
			c.Nalog = (System.String)reader["Nalog"];
			c.OpisKnjizenja = reader.IsDBNull(reader.GetOrdinal("OpisKnjizenja")) ? null : (System.String)reader["OpisKnjizenja"];
			c.Dug = (System.Decimal)reader["Dug"];
			c.Pot = (System.Decimal)reader["Pot"];
			c.IDKlijent = reader.IsDBNull(reader.GetOrdinal("IDKlijent")) ? null : (System.Int32?)reader["IDKlijent"];
			c.SifraOriginalnogDokumenta = reader.IsDBNull(reader.GetOrdinal("SifraOriginalnogDokumenta")) ? null : (System.String)reader["SifraOriginalnogDokumenta"];
			c.DatumDospijeca = reader.IsDBNull(reader.GetOrdinal("DatumDospijeca")) ? null : (System.DateTime?)reader["DatumDospijeca"];
			c.PlacanjeModel = reader.IsDBNull(reader.GetOrdinal("PlacanjeModel")) ? null : (System.String)reader["PlacanjeModel"];
			c.PlacanjePoziv = reader.IsDBNull(reader.GetOrdinal("PlacanjePoziv")) ? null : (System.String)reader["PlacanjePoziv"];
			c.IDKnjizenja = (System.Int32)reader["IDKnjizenja"];
			c.DatumCreated = (System.DateTime)reader["DatumCreated"];
			c.DatumModified = (System.DateTime)reader["DatumModified"];
			c.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			c.IDUserModified = (System.Int32)reader["IDUserModified"];
			c.PrikazUKnjizi = (System.Int32)reader["PrikazUKnjizi"];
			c.DateUICreated = (System.DateTime)reader["DateUICreated"];
			c.KontoSifraPrijenos = reader.IsDBNull(reader.GetOrdinal("KontoSifraPrijenos")) ? null : (System.String)reader["KontoSifraPrijenos"];
			c.IDDokument = reader.IsDBNull(reader.GetOrdinal("IDDokument")) ? null : (System.Int32?)reader["IDDokument"];
			c.Calculated = reader.IsDBNull(reader.GetOrdinal("Calculated")) ? null : (System.String)reader["Calculated"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.KnjizenjeStavka entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.IDKonto = (System.Int32)reader["IDKonto"];
			entity.IDOrganizacija = (System.Int32)reader["IDOrganizacija"];
			entity.IDVrstaFinDokumenta = (System.Int32)reader["IDVrstaFinDokumenta"];
			entity.DatumDokumentaOriginal = (System.DateTime)reader["DatumDokumentaOriginal"];
			entity.DatumDokumentaPromjenjen = reader.IsDBNull(reader.GetOrdinal("DatumDokumentaPromjenjen")) ? null : (System.DateTime?)reader["DatumDokumentaPromjenjen"];
			entity.Nalog = (System.String)reader["Nalog"];
			entity.OpisKnjizenja = reader.IsDBNull(reader.GetOrdinal("OpisKnjizenja")) ? null : (System.String)reader["OpisKnjizenja"];
			entity.Dug = (System.Decimal)reader["Dug"];
			entity.Pot = (System.Decimal)reader["Pot"];
			entity.IDKlijent = reader.IsDBNull(reader.GetOrdinal("IDKlijent")) ? null : (System.Int32?)reader["IDKlijent"];
			entity.SifraOriginalnogDokumenta = reader.IsDBNull(reader.GetOrdinal("SifraOriginalnogDokumenta")) ? null : (System.String)reader["SifraOriginalnogDokumenta"];
			entity.DatumDospijeca = reader.IsDBNull(reader.GetOrdinal("DatumDospijeca")) ? null : (System.DateTime?)reader["DatumDospijeca"];
			entity.PlacanjeModel = reader.IsDBNull(reader.GetOrdinal("PlacanjeModel")) ? null : (System.String)reader["PlacanjeModel"];
			entity.PlacanjePoziv = reader.IsDBNull(reader.GetOrdinal("PlacanjePoziv")) ? null : (System.String)reader["PlacanjePoziv"];
			entity.IDKnjizenja = (System.Int32)reader["IDKnjizenja"];
			entity.DatumCreated = (System.DateTime)reader["DatumCreated"];
			entity.DatumModified = (System.DateTime)reader["DatumModified"];
			entity.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			entity.IDUserModified = (System.Int32)reader["IDUserModified"];
			entity.PrikazUKnjizi = (System.Int32)reader["PrikazUKnjizi"];
			entity.DateUICreated = (System.DateTime)reader["DateUICreated"];
			entity.KontoSifraPrijenos = reader.IsDBNull(reader.GetOrdinal("KontoSifraPrijenos")) ? null : (System.String)reader["KontoSifraPrijenos"];
			entity.IDDokument = reader.IsDBNull(reader.GetOrdinal("IDDokument")) ? null : (System.Int32?)reader["IDDokument"];
			entity.Calculated = reader.IsDBNull(reader.GetOrdinal("Calculated")) ? null : (System.String)reader["Calculated"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.KnjizenjeStavka entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.IDKonto = (System.Int32)dataRow["IDKonto"];
			entity.IDOrganizacija = (System.Int32)dataRow["IDOrganizacija"];
			entity.IDVrstaFinDokumenta = (System.Int32)dataRow["IDVrstaFinDokumenta"];
			entity.DatumDokumentaOriginal = (System.DateTime)dataRow["DatumDokumentaOriginal"];
			entity.DatumDokumentaPromjenjen = Convert.IsDBNull(dataRow["DatumDokumentaPromjenjen"]) ? null : (System.DateTime?)dataRow["DatumDokumentaPromjenjen"];
			entity.Nalog = (System.String)dataRow["Nalog"];
			entity.OpisKnjizenja = Convert.IsDBNull(dataRow["OpisKnjizenja"]) ? null : (System.String)dataRow["OpisKnjizenja"];
			entity.Dug = (System.Decimal)dataRow["Dug"];
			entity.Pot = (System.Decimal)dataRow["Pot"];
			entity.IDKlijent = Convert.IsDBNull(dataRow["IDKlijent"]) ? null : (System.Int32?)dataRow["IDKlijent"];
			entity.SifraOriginalnogDokumenta = Convert.IsDBNull(dataRow["SifraOriginalnogDokumenta"]) ? null : (System.String)dataRow["SifraOriginalnogDokumenta"];
			entity.DatumDospijeca = Convert.IsDBNull(dataRow["DatumDospijeca"]) ? null : (System.DateTime?)dataRow["DatumDospijeca"];
			entity.PlacanjeModel = Convert.IsDBNull(dataRow["PlacanjeModel"]) ? null : (System.String)dataRow["PlacanjeModel"];
			entity.PlacanjePoziv = Convert.IsDBNull(dataRow["PlacanjePoziv"]) ? null : (System.String)dataRow["PlacanjePoziv"];
			entity.IDKnjizenja = (System.Int32)dataRow["IDKnjizenja"];
			entity.DatumCreated = (System.DateTime)dataRow["DatumCreated"];
			entity.DatumModified = (System.DateTime)dataRow["DatumModified"];
			entity.IDUserCreated = (System.Int32)dataRow["IDUserCreated"];
			entity.IDUserModified = (System.Int32)dataRow["IDUserModified"];
			entity.PrikazUKnjizi = (System.Int32)dataRow["PrikazUKnjizi"];
			entity.DateUICreated = (System.DateTime)dataRow["DateUICreated"];
			entity.KontoSifraPrijenos = Convert.IsDBNull(dataRow["KontoSifraPrijenos"]) ? null : (System.String)dataRow["KontoSifraPrijenos"];
			entity.IDDokument = Convert.IsDBNull(dataRow["IDDokument"]) ? null : (System.Int32?)dataRow["IDDokument"];
			entity.Calculated = Convert.IsDBNull(dataRow["Calculated"]) ? null : (System.String)dataRow["Calculated"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.KnjizenjeStavka"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.KnjizenjeStavka Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeStavka entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IDUserCreatedSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserCreatedSource", deepLoadType, innerList) 
				&& entity.IDUserCreatedSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUserCreated;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserCreatedSource = tmpEntity;
				else
					entity.IDUserCreatedSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUserCreated);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserCreatedSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserCreatedSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserCreatedSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserCreatedSource

			#region IDUserModifiedSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserModifiedSource", deepLoadType, innerList) 
				&& entity.IDUserModifiedSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUserModified;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserModifiedSource = tmpEntity;
				else
					entity.IDUserModifiedSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUserModified);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserModifiedSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserModifiedSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserModifiedSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserModifiedSource

			#region IDDokumentSource	
			if (CanDeepLoad(entity, "Dokument|IDDokumentSource", deepLoadType, innerList) 
				&& entity.IDDokumentSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDDokument ?? (int)0);
				Dokument tmpEntity = EntityManager.LocateEntity<Dokument>(EntityLocator.ConstructKeyFromPkItems(typeof(Dokument), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDDokumentSource = tmpEntity;
				else
					entity.IDDokumentSource = DataRepository.DokumentProvider.GetByID(transactionManager, (entity.IDDokument ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDDokumentSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDDokumentSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DokumentProvider.DeepLoad(transactionManager, entity.IDDokumentSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDDokumentSource

			#region IDKlijentSource	
			if (CanDeepLoad(entity, "Klijent|IDKlijentSource", deepLoadType, innerList) 
				&& entity.IDKlijentSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDKlijent ?? (int)0);
				Klijent tmpEntity = EntityManager.LocateEntity<Klijent>(EntityLocator.ConstructKeyFromPkItems(typeof(Klijent), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDKlijentSource = tmpEntity;
				else
					entity.IDKlijentSource = DataRepository.KlijentProvider.GetByID(transactionManager, (entity.IDKlijent ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDKlijentSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDKlijentSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.KlijentProvider.DeepLoad(transactionManager, entity.IDKlijentSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDKlijentSource

			#region IDKnjizenjaSource	
			if (CanDeepLoad(entity, "Knjizenje|IDKnjizenjaSource", deepLoadType, innerList) 
				&& entity.IDKnjizenjaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDKnjizenja;
				Knjizenje tmpEntity = EntityManager.LocateEntity<Knjizenje>(EntityLocator.ConstructKeyFromPkItems(typeof(Knjizenje), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDKnjizenjaSource = tmpEntity;
				else
					entity.IDKnjizenjaSource = DataRepository.KnjizenjeProvider.GetByID(transactionManager, entity.IDKnjizenja);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDKnjizenjaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDKnjizenjaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.KnjizenjeProvider.DeepLoad(transactionManager, entity.IDKnjizenjaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDKnjizenjaSource

			#region IDKontoSource	
			if (CanDeepLoad(entity, "Konto|IDKontoSource", deepLoadType, innerList) 
				&& entity.IDKontoSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDKonto;
				Konto tmpEntity = EntityManager.LocateEntity<Konto>(EntityLocator.ConstructKeyFromPkItems(typeof(Konto), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDKontoSource = tmpEntity;
				else
					entity.IDKontoSource = DataRepository.KontoProvider.GetByID(transactionManager, entity.IDKonto);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDKontoSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDKontoSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.KontoProvider.DeepLoad(transactionManager, entity.IDKontoSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDKontoSource

			#region IDOrganizacijaSource	
			if (CanDeepLoad(entity, "Organizacija|IDOrganizacijaSource", deepLoadType, innerList) 
				&& entity.IDOrganizacijaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDOrganizacija;
				Organizacija tmpEntity = EntityManager.LocateEntity<Organizacija>(EntityLocator.ConstructKeyFromPkItems(typeof(Organizacija), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDOrganizacijaSource = tmpEntity;
				else
					entity.IDOrganizacijaSource = DataRepository.OrganizacijaProvider.GetByID(transactionManager, entity.IDOrganizacija);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDOrganizacijaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDOrganizacijaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.OrganizacijaProvider.DeepLoad(transactionManager, entity.IDOrganizacijaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDOrganizacijaSource

			#region IDVrstaFinDokumentaSource	
			if (CanDeepLoad(entity, "VrstaFinDokumenta|IDVrstaFinDokumentaSource", deepLoadType, innerList) 
				&& entity.IDVrstaFinDokumentaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDVrstaFinDokumenta;
				VrstaFinDokumenta tmpEntity = EntityManager.LocateEntity<VrstaFinDokumenta>(EntityLocator.ConstructKeyFromPkItems(typeof(VrstaFinDokumenta), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDVrstaFinDokumentaSource = tmpEntity;
				else
					entity.IDVrstaFinDokumentaSource = DataRepository.VrstaFinDokumentaProvider.GetByID(transactionManager, entity.IDVrstaFinDokumenta);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDVrstaFinDokumentaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDVrstaFinDokumentaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.VrstaFinDokumentaProvider.DeepLoad(transactionManager, entity.IDVrstaFinDokumentaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDVrstaFinDokumentaSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region VirmanCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Virman>|VirmanCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'VirmanCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.VirmanCollection = DataRepository.VirmanProvider.GetByIDKnjizenja(transactionManager, entity.ID);

				if (deep && entity.VirmanCollection.Count > 0)
				{
					deepHandles.Add("VirmanCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Virman>) DataRepository.VirmanProvider.DeepLoad,
						new object[] { transactionManager, entity.VirmanCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region ObracunKamataStavkeCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<ObracunKamataStavke>|ObracunKamataStavkeCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ObracunKamataStavkeCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ObracunKamataStavkeCollection = DataRepository.ObracunKamataStavkeProvider.GetByIDKnjizenje(transactionManager, entity.ID);

				if (deep && entity.ObracunKamataStavkeCollection.Count > 0)
				{
					deepHandles.Add("ObracunKamataStavkeCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<ObracunKamataStavke>) DataRepository.ObracunKamataStavkeProvider.DeepLoad,
						new object[] { transactionManager, entity.ObracunKamataStavkeCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region ZatvaranjeCollectionGetByIDZatvaratelj
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Zatvaranje>|ZatvaranjeCollectionGetByIDZatvaratelj", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ZatvaranjeCollectionGetByIDZatvaratelj' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ZatvaranjeCollectionGetByIDZatvaratelj = DataRepository.ZatvaranjeProvider.GetByIDZatvaratelj(transactionManager, entity.ID);

				if (deep && entity.ZatvaranjeCollectionGetByIDZatvaratelj.Count > 0)
				{
					deepHandles.Add("ZatvaranjeCollectionGetByIDZatvaratelj",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Zatvaranje>) DataRepository.ZatvaranjeProvider.DeepLoad,
						new object[] { transactionManager, entity.ZatvaranjeCollectionGetByIDZatvaratelj, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region ObracunKamataProknjizen
			// RelationshipType.OneToOne
			if (CanDeepLoad(entity, "ObracunKamataProknjizen|ObracunKamataProknjizen", deepLoadType, innerList))
			{
				entity.ObracunKamataProknjizen = DataRepository.ObracunKamataProknjizenProvider.GetByIDKnjizenjeStavka(transactionManager, entity.ID);
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ObracunKamataProknjizen' loaded. key " + entity.EntityTrackingKey);
				#endif 

				if (deep && entity.ObracunKamataProknjizen != null)
				{
					deepHandles.Add("ObracunKamataProknjizen",
						new KeyValuePair<Delegate, object>((DeepLoadSingleHandle< ObracunKamataProknjizen >) DataRepository.ObracunKamataProknjizenProvider.DeepLoad,
						new object[] { transactionManager, entity.ObracunKamataProknjizen, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion 
			
			
			
			#region ZatvaranjeCollectionGetByIDKnjizenje
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Zatvaranje>|ZatvaranjeCollectionGetByIDKnjizenje", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ZatvaranjeCollectionGetByIDKnjizenje' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ZatvaranjeCollectionGetByIDKnjizenje = DataRepository.ZatvaranjeProvider.GetByIDKnjizenje(transactionManager, entity.ID);

				if (deep && entity.ZatvaranjeCollectionGetByIDKnjizenje.Count > 0)
				{
					deepHandles.Add("ZatvaranjeCollectionGetByIDKnjizenje",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Zatvaranje>) DataRepository.ZatvaranjeProvider.DeepLoad,
						new object[] { transactionManager, entity.ZatvaranjeCollectionGetByIDKnjizenje, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.KnjizenjeStavka object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.KnjizenjeStavka instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.KnjizenjeStavka Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeStavka entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IDUserCreatedSource
			if (CanDeepSave(entity, "Djelatnik|IDUserCreatedSource", deepSaveType, innerList) 
				&& entity.IDUserCreatedSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserCreatedSource);
				entity.IDUserCreated = entity.IDUserCreatedSource.ID;
			}
			#endregion 
			
			#region IDUserModifiedSource
			if (CanDeepSave(entity, "Djelatnik|IDUserModifiedSource", deepSaveType, innerList) 
				&& entity.IDUserModifiedSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserModifiedSource);
				entity.IDUserModified = entity.IDUserModifiedSource.ID;
			}
			#endregion 
			
			#region IDDokumentSource
			if (CanDeepSave(entity, "Dokument|IDDokumentSource", deepSaveType, innerList) 
				&& entity.IDDokumentSource != null)
			{
				DataRepository.DokumentProvider.Save(transactionManager, entity.IDDokumentSource);
				entity.IDDokument = entity.IDDokumentSource.ID;
			}
			#endregion 
			
			#region IDKlijentSource
			if (CanDeepSave(entity, "Klijent|IDKlijentSource", deepSaveType, innerList) 
				&& entity.IDKlijentSource != null)
			{
				DataRepository.KlijentProvider.Save(transactionManager, entity.IDKlijentSource);
				entity.IDKlijent = entity.IDKlijentSource.ID;
			}
			#endregion 
			
			#region IDKnjizenjaSource
			if (CanDeepSave(entity, "Knjizenje|IDKnjizenjaSource", deepSaveType, innerList) 
				&& entity.IDKnjizenjaSource != null)
			{
				DataRepository.KnjizenjeProvider.Save(transactionManager, entity.IDKnjizenjaSource);
				entity.IDKnjizenja = entity.IDKnjizenjaSource.ID;
			}
			#endregion 
			
			#region IDKontoSource
			if (CanDeepSave(entity, "Konto|IDKontoSource", deepSaveType, innerList) 
				&& entity.IDKontoSource != null)
			{
				DataRepository.KontoProvider.Save(transactionManager, entity.IDKontoSource);
				entity.IDKonto = entity.IDKontoSource.ID;
			}
			#endregion 
			
			#region IDOrganizacijaSource
			if (CanDeepSave(entity, "Organizacija|IDOrganizacijaSource", deepSaveType, innerList) 
				&& entity.IDOrganizacijaSource != null)
			{
				DataRepository.OrganizacijaProvider.Save(transactionManager, entity.IDOrganizacijaSource);
				entity.IDOrganizacija = entity.IDOrganizacijaSource.ID;
			}
			#endregion 
			
			#region IDVrstaFinDokumentaSource
			if (CanDeepSave(entity, "VrstaFinDokumenta|IDVrstaFinDokumentaSource", deepSaveType, innerList) 
				&& entity.IDVrstaFinDokumentaSource != null)
			{
				DataRepository.VrstaFinDokumentaProvider.Save(transactionManager, entity.IDVrstaFinDokumentaSource);
				entity.IDVrstaFinDokumenta = entity.IDVrstaFinDokumentaSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();

			#region ObracunKamataProknjizen
			if (CanDeepSave(entity.ObracunKamataProknjizen, "ObracunKamataProknjizen|ObracunKamataProknjizen", deepSaveType, innerList))
			{

				if (entity.ObracunKamataProknjizen != null)
				{
					// update each child parent id with the real parent id (mostly used on insert)

					entity.ObracunKamataProknjizen.IDKnjizenjeStavka = entity.ID;
					DataRepository.ObracunKamataProknjizenProvider.Save(transactionManager, entity.ObracunKamataProknjizen);
					deepHandles.Add(
						(DeepSaveSingleHandle< ObracunKamataProknjizen >) DataRepository.ObracunKamataProknjizenProvider.DeepSave,
						new object[] { transactionManager, entity.ObracunKamataProknjizen, deepSaveType, childTypes, innerList }
					);
				}
			} 
			#endregion 
	
			#region List<Virman>
				if (CanDeepSave(entity.VirmanCollection, "List<Virman>|VirmanCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Virman child in entity.VirmanCollection)
					{
						if(child.IDKnjizenjaSource != null)
							child.IDKnjizenja = child.IDKnjizenjaSource.ID;
						else
							child.IDKnjizenja = entity.ID;

					}

					if (entity.VirmanCollection.Count > 0 || entity.VirmanCollection.DeletedItems.Count > 0)
					{
						DataRepository.VirmanProvider.Save(transactionManager, entity.VirmanCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Virman >) DataRepository.VirmanProvider.DeepSave,
							new object[] { transactionManager, entity.VirmanCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<ObracunKamataStavke>
				if (CanDeepSave(entity.ObracunKamataStavkeCollection, "List<ObracunKamataStavke>|ObracunKamataStavkeCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(ObracunKamataStavke child in entity.ObracunKamataStavkeCollection)
					{
						if(child.IDKnjizenjeSource != null)
							child.IDKnjizenje = child.IDKnjizenjeSource.ID;
						else
							child.IDKnjizenje = entity.ID;

					}

					if (entity.ObracunKamataStavkeCollection.Count > 0 || entity.ObracunKamataStavkeCollection.DeletedItems.Count > 0)
					{
						DataRepository.ObracunKamataStavkeProvider.Save(transactionManager, entity.ObracunKamataStavkeCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< ObracunKamataStavke >) DataRepository.ObracunKamataStavkeProvider.DeepSave,
							new object[] { transactionManager, entity.ObracunKamataStavkeCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Zatvaranje>
				if (CanDeepSave(entity.ZatvaranjeCollectionGetByIDZatvaratelj, "List<Zatvaranje>|ZatvaranjeCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Zatvaranje child in entity.ZatvaranjeCollectionGetByIDZatvaratelj)
					{
						if(child.IDZatvarateljSource != null)
							child.IDZatvaratelj = child.IDZatvarateljSource.ID;
						else
							child.IDZatvaratelj = entity.ID;

					}

					if (entity.ZatvaranjeCollectionGetByIDZatvaratelj.Count > 0 || entity.ZatvaranjeCollectionGetByIDZatvaratelj.DeletedItems.Count > 0)
					{
						DataRepository.ZatvaranjeProvider.Save(transactionManager, entity.ZatvaranjeCollectionGetByIDZatvaratelj);
						
						deepHandles.Add(
							(DeepSaveHandle< Zatvaranje >) DataRepository.ZatvaranjeProvider.DeepSave,
							new object[] { transactionManager, entity.ZatvaranjeCollectionGetByIDZatvaratelj, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Zatvaranje>
				if (CanDeepSave(entity.ZatvaranjeCollectionGetByIDKnjizenje, "List<Zatvaranje>|ZatvaranjeCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Zatvaranje child in entity.ZatvaranjeCollectionGetByIDKnjizenje)
					{
						if(child.IDKnjizenjeSource != null)
							child.IDKnjizenje = child.IDKnjizenjeSource.ID;
						else
							child.IDKnjizenje = entity.ID;

					}

					if (entity.ZatvaranjeCollectionGetByIDKnjizenje.Count > 0 || entity.ZatvaranjeCollectionGetByIDKnjizenje.DeletedItems.Count > 0)
					{
						DataRepository.ZatvaranjeProvider.Save(transactionManager, entity.ZatvaranjeCollectionGetByIDKnjizenje);
						
						deepHandles.Add(
							(DeepSaveHandle< Zatvaranje >) DataRepository.ZatvaranjeProvider.DeepSave,
							new object[] { transactionManager, entity.ZatvaranjeCollectionGetByIDKnjizenje, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region KnjizenjeStavkaChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.KnjizenjeStavka</c>
	///</summary>
	public enum KnjizenjeStavkaChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Djelatnik</c> at IDUserCreatedSource
		///</summary>
		[ChildEntityType(typeof(Djelatnik))]
		Djelatnik,
			
		///<summary>
		/// Composite Property for <c>Dokument</c> at IDDokumentSource
		///</summary>
		[ChildEntityType(typeof(Dokument))]
		Dokument,
			
		///<summary>
		/// Composite Property for <c>Klijent</c> at IDKlijentSource
		///</summary>
		[ChildEntityType(typeof(Klijent))]
		Klijent,
			
		///<summary>
		/// Composite Property for <c>Knjizenje</c> at IDKnjizenjaSource
		///</summary>
		[ChildEntityType(typeof(Knjizenje))]
		Knjizenje,
			
		///<summary>
		/// Composite Property for <c>Konto</c> at IDKontoSource
		///</summary>
		[ChildEntityType(typeof(Konto))]
		Konto,
			
		///<summary>
		/// Composite Property for <c>Organizacija</c> at IDOrganizacijaSource
		///</summary>
		[ChildEntityType(typeof(Organizacija))]
		Organizacija,
			
		///<summary>
		/// Composite Property for <c>VrstaFinDokumenta</c> at IDVrstaFinDokumentaSource
		///</summary>
		[ChildEntityType(typeof(VrstaFinDokumenta))]
		VrstaFinDokumenta,
	
		///<summary>
		/// Collection of <c>KnjizenjeStavka</c> as OneToMany for VirmanCollection
		///</summary>
		[ChildEntityType(typeof(TList<Virman>))]
		VirmanCollection,

		///<summary>
		/// Collection of <c>KnjizenjeStavka</c> as OneToMany for ObracunKamataStavkeCollection
		///</summary>
		[ChildEntityType(typeof(TList<ObracunKamataStavke>))]
		ObracunKamataStavkeCollection,

		///<summary>
		/// Collection of <c>KnjizenjeStavka</c> as OneToMany for ZatvaranjeCollection
		///</summary>
		[ChildEntityType(typeof(TList<Zatvaranje>))]
		ZatvaranjeCollectionGetByIDZatvaratelj,
		///<summary>
		/// Entity <c>ObracunKamataProknjizen</c> as OneToOne for ObracunKamataProknjizen
		///</summary>
		[ChildEntityType(typeof(ObracunKamataProknjizen))]
		ObracunKamataProknjizen,

		///<summary>
		/// Collection of <c>KnjizenjeStavka</c> as OneToMany for ZatvaranjeCollection
		///</summary>
		[ChildEntityType(typeof(TList<Zatvaranje>))]
		ZatvaranjeCollectionGetByIDKnjizenje,
	}
	
	#endregion KnjizenjeStavkaChildEntityTypes
	
	#region KnjizenjeStavkaFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;KnjizenjeStavkaColumn&gt;"/> class
	/// that is used exclusively with a <see cref="KnjizenjeStavka"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class KnjizenjeStavkaFilterBuilder : SqlFilterBuilder<KnjizenjeStavkaColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaFilterBuilder class.
		/// </summary>
		public KnjizenjeStavkaFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public KnjizenjeStavkaFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public KnjizenjeStavkaFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion KnjizenjeStavkaFilterBuilder
	
	#region KnjizenjeStavkaParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;KnjizenjeStavkaColumn&gt;"/> class
	/// that is used exclusively with a <see cref="KnjizenjeStavka"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class KnjizenjeStavkaParameterBuilder : ParameterizedSqlFilterBuilder<KnjizenjeStavkaColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaParameterBuilder class.
		/// </summary>
		public KnjizenjeStavkaParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public KnjizenjeStavkaParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public KnjizenjeStavkaParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion KnjizenjeStavkaParameterBuilder
} // end namespace
